<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html">

      

      
      <h:panelGroup rendered="#{empty employees}">
         <em>No registered members.</em>
      </h:panelGroup>
      <h:dataTable var="employee" value="#{employees}" rendered="#{not empty employees}" styleClass="simpletablestyle">
         <h:column>
            <f:facet name="header">Id</f:facet>
                #{employee.id}
            </h:column>
         <h:column>
            <f:facet name="header">Name</f:facet>
                #{employee.name}
            </h:column>
         <h:column>
            <f:facet name="header">Email</f:facet>
                #{employee.email}
            </h:column>
         <h:column>
            <f:facet name="header">Phone #</f:facet>
                #{employee.phoneNumber}
            </h:column>
         <h:column>
            <f:facet name="header">REST URL</f:facet>
            <a href="#{request.contextPath}/rest/employees/#{employee.id}">/rest/members/#{employee.id}</a>
         </h:column>
         <f:facet name="footer">
            REST URL for all members: <a href="#{request.contextPath}/rest/employees">/rest/members</a>
         </f:facet>
      </h:dataTable>
</ui:composition>